﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BookWriter
{   public class FileDesc
    {
        public TreeNode node;
        public TabPage page;
        public DocumentEditor textBox;
        public string name;
        public string filename;
        public FileType type;

        public string FullName
        {
            get
            {
                if (type == FileType.folder)
                    return filename;
                else
                    return filename + "." + type.ToString();
            }
        }
    }

        
}
